package com.dwxt.cdms.dao.yumeng;

import com.dwxt.cdms.entity.yumeng.BpData;
import com.dwxt.cdms.view.wristwatch.BpDataView;
import com.dwxt.cdms.vo.SelectWatchDataVo;
import com.dwxt.cdms.vo.SelectWatchVo;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface BpDataMapper extends Mapper<BpData> {

    int countBpDataByDevAndTime(BpData bpData);

    List<BpDataView> selectHrBpDataViewByCondition(SelectWatchDataVo selectWatchDataVo);

    int deleteBpDataByCustomerIds(@Param("customerIds") Integer[] customerIds);

    int replaceBindingWatchUser(@Param("customerId") Integer customerId, @Param("deviceIdentity") String deviceIdentity);

    List<Integer> selectCustomerIdByCondition(SelectWatchDataVo selectWatchDataVo);

    BpDataView selectBpDataViewByCustomerIdAndLatest(Integer customerId);

    List<BpDataView> selectBpDataViewListByCustomerId(SelectWatchVo selectWatchVo);

    List<BpData> selectBpDataGraph(Integer customerId);

    List<BpDataView> selectCustomerBpDataView(String customerId, Integer scope);
}